/*
 * Copyright (c) 2024. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

package com.neusoft.tyut.myspring.myaop.impl;

import com.neusoft.tyut.myspring.myaop.EmpService;

public class EmpServiceImpl implements EmpService {

    public void test() {

        System.out.println("测试");
    }

    public void addEmp() {
        System.out.println("添加员工");
    }

    public int delEmp() {
        System.out.println("删除员工");

        if (System.currentTimeMillis() % 2 == 0) {
            throw new RuntimeException("xyz--------------------------------");
        }

        return (int) (System.currentTimeMillis() % Integer.MAX_VALUE);
    }
}
